﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WsTestingTester
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                WsTesting.WsTestingServiceClient wsTesting =
                    new WsTesting.WsTestingServiceClient();

                EncryptionService.ServiceSoapClient encrypt_client =
                    new EncryptionService.ServiceSoapClient("ServiceSoap");

                String username = encrypt_client.Encrypt("user");
                String password = encrypt_client.Encrypt("password");

                String auth_url = "http://venus.eas.asu.edu/WSRepository/Services/Encryption/Service.asmx" + "?wsdl";
                String operation_name = "Encrypt";
                string[] arguments = new string[1]{"user"};

                wsTesting.WsTesting(auth_url, operation_name, arguments);

            }
            catch (Exception ex)
            {
                String message =
                    "An Exception occured in WsTesting tester. " + ex.Message;
                Console.WriteLine(message);
            }
        }
    }
}
